﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace BridgeShips
{
    public class CalibrationPositionDate : UDPDateBase
    {
        private List<string> m_dateList = new List<string>();
        private List<string> m_dateMsgs = new List<string>();
        
        public override void GetDictionaryDate(string date)
        {
            base.GetDictionaryDate(date);
            if (m_dateMsgs.Contains(date))
            {
                return;
            }
            //if (m_oldStr!=date)
            //{
            //    m_oldStr = date;
            //    m_dateList.Clear();

            //    
            //}
            m_dateList = SpitReceivedMsgs.SpitMsgs(date);
            ShipsDictionary.Instance.AddInitPosInDic(m_dateList[0], m_dateList[1], m_dateList[2]);

        }
    }
}